﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EPiServer.Core;
using EPiServer.Municipality.Web.UI;

namespace EPiServer.Municipality.Templates.MobilePages {

    public partial class NewsList : TemplatePage
    {

        
        
        
        #region protected string GetTeaserImage(PageData pageData)
        /// <summary>
        /// 
        /// </summary>
        /// <param name="pageData"></param>
        /// <returns></returns>
        protected string GetTeaserImage(PageData pageData)
        {
            return pageData.Property["PreviewImage"] == null ? string.Empty : string.Format("<img class=\"thumbnail\" src=\"{0}\" alt=\"\" />", pageData["PreviewImage"]);
        }
        #endregion


        protected void Page_Load(object sender, EventArgs e) {

            MyPageList.DataBind();

        }
    }
}